import { Statistic, Card, Row, Col } from 'antd';
import { ArrowUpOutlined, ArrowDownOutlined } from '@ant-design/icons';

export default () => (
  <div className="site-statistic-demo-card" style={{padding: '30px',background: '#ececec'}}>
    <Row gutter={16}>
      <Col span={8}>
        <Card title="新增用户率" style={{marginBottom: '20px'}}>
          <Statistic
            title="Active"
            value={1.28}
            precision={2}
            valueStyle={{ color: '#3f8600' }}
            prefix={<ArrowUpOutlined />}
            suffix="%"
          />
        </Card>
      </Col>

      <Col span={8}>
        <Card title="日活用户">
          <Statistic
            title="比率"
            value={3.31}
            precision={2}
            valueStyle={{ color: '#cf1322' }}
            prefix={<ArrowDownOutlined />}
            suffix="%"
          />
        </Card>
      </Col>

      <Col span={8}>
        <Card title="总访问量">
          <Statistic
            title="比率"
            value={2.75}
            precision={2}
            valueStyle={{ color: '#3f8600' }}
            prefix={<ArrowUpOutlined />}
            suffix="%"
          />
        </Card>
      </Col>

      <Col span={8}>
        <Card title="今日新增用户">
          <Statistic
            title="人数"
            value={162}
            // precision={2}
            valueStyle={{ color: '#3f8600' }}
            prefix={<ArrowUpOutlined />}
            suffix="位"
          />
        </Card>
      </Col>

      <Col span={8}>
        <Card title="游戏上线率">
          <Statistic
            title="Active"
            value={1.28}
            precision={2}
            valueStyle={{ color: '#cf1322' }}
            prefix={<ArrowDownOutlined />}
            suffix="%"
          />
        </Card>
      </Col>

      <Col span={8}>
        <Card title="今日新增访问量">
          <Statistic
            title="数量"
            value={32610}
            // precision={2}
            valueStyle={{ color: '#3f8600' }}
            prefix={<ArrowUpOutlined />}
            suffix=""
          />
        </Card>
      </Col>
    </Row>
  </div>
);